package study.springcloud.breaker.sentinel.controller._2_degrade;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import study.eggs.result.Result;
import study.eggs.result.Results;

@Slf4j
@RestController
public class _1_DegradeController {

    @RequestMapping("/degrade1")
    public Result echo() {
        int a = 100 / 0;
        return Results.ok();
    }
}
